from blackmeizi import app
from flask import render_template, request, flash
from forms import ContactForm
from models import db

@app.route('/')
def home():
    return render_template('home.html')

@app.route('/about')
def about():
    return render_template('about.html')

@app.route('/contact')
def contact():
    form = ContactForm()
    return render_template('contact.html', form=form)

@app.route('/testdb')
def testdb():
    if db.session.query("1").from_statement("select 1").all():
        return "It works"
    else:
        return "error"

    
